package com.ruoyi.cms.blog.mapper;

import com.ruoyi.cms.blog.domain.CmsAdvertised;
import com.ruoyi.cms.blog.domain.dto.CmsAdvertisedDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CmsAdvertisedMapper {

    List<CmsAdvertised> list(CmsAdvertisedDTO dto);
    CmsAdvertised getById(@Param("id") Long id);
    CmsAdvertised getOne(CmsAdvertised ca);
    int insert(CmsAdvertisedDTO ca);
    Long update(CmsAdvertised ca);
    int delete(@Param("id") Long id);

    List<CmsAdvertised> topList(CmsAdvertisedDTO dto);

    int topCount(@Param("city") String city);

    List<CmsAdvertised> getTop();

    List<CmsAdvertised> getAuto();

    List<CmsAdvertised> getHighlight();



}
